package org.hrds.rducm.gitlab.infra.constant;

import java.nio.file.attribute.AclFileAttributeView;

public final class ExceptionConstants {


    public static class MemberCode {
        //成员已存在
        public static final String RDUCM_MEMBER_EXIST = "rducm.member.exist";
        public static final String RDUCM_MEMBER_NOT_EXIST = "rducm.member.notExist";
        public static final String RDUCM_SYNC_FLAG_FALSE = "rducm.sync.flag.false";
        public static final String RDUCM_MEMBER_APPROVAL_EXIST = "rducm.member.approval.exist";
        public static final String RDUCM_MEMBER_NOT_ALLOW_CHANGE = "rducm.member.not.allow.change";
    }

    public static class GitLabCode {
        public static final String RDUCM_GITLAB_CLIENT = "rducm.gitlab.client";
        public static final String RDUCM_GITLAB_USER_ID_NULL = "rducm.gitlab.user.id.null";
        public static final String RDUCM_DEVOPS_GITLAB_PROJECT_NOT_EXIST = "rducm.devops.gitlab.project.notExist";
        public static final String RDUCM_GITLAB_GROUP_NOT_EXIST = "rducm.gitlab.group.not.exist";
        public static final String RDUCM_GROUP_MEMBER_NOT_EXIST = "rducm.group.member.notExist";
        public static final String RDUCM_GROUP_MEMBER_EXIST = "rducm.group.member.exist";
    }

    public static class AccessCode {
        public static final String RDUCM_OLD_NEW_ACCESS_LEVEL_EQUAL = "rducm.old.new.access.level.equal";
        public static final String RDUCM_APPROVAL_STATE_NOT_PENDING = "rducm.approval.state.not.pending";
        public static final String RDUCM_OLD_ACCESS_LEVEL_CAN_NOT_UPDATE = "rducm.old.access.level.can.not.update";
        public static final String RDUCM_OWNER_NOTREMOVE = "rducm.owner.notRemove";
        public static final String RDUCM_APPLICANTUSER_IS_PROJECTADMIN_OR_ORGADMIN = "rducm.applicantUser.is.projectAdmin.or.orgAdmin";
        public static final String RDUCM_WORDS_LIMIT_REJECTION_REASONS = "rducm.words.limit.rejection.reasons";
        public static final String RDUCM_SHOULD_BE_HIGHER_THAN_OWNER_INHERITED_MEMBERSHIP_FROM_GROUP = "rducm.should.be.higher.than.owner.inherited.membership.from.group";
        public static final String RDUCM_FUTURE_TIME_ENTER="rducm.future.time.enter";
    }

    public static class BranchCode {
        public static final String RDUCM_PROTECTED_BRANCH_EXIST = "rducm.protected.branch.exist";
    }

    public static class TagCode {
        public static final String RDUCM_PROTECTED_TAG_EXIST = "rducm.protected.tag.exist";
    }

    public static class FeignCode {
        public static final String RDUCM_FEIGN_FALLBACK = "rducm.feign.fallback";
    }

}
